package com.google.android.exoplayer2.metadata.emsg;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.metadata.Metadata.Entry;
import java.util.Arrays;
import o.anr;

public final class EventMessage implements Entry {
    public static final Creator<EventMessage> CREATOR = new Creator<EventMessage>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˎ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˋ(i);
        }

        public EventMessage ˎ(Parcel parcel) {
            return new EventMessage(parcel);
        }

        public EventMessage[] ˋ(int i) {
            return new EventMessage[i];
        }
    };
    public final String ˊ;
    public final byte[] ˋ;
    public final long ˎ;
    public final String ˏ;
    public final long ॱ;
    private int ᐝ;

    public EventMessage(String str, String str2, long j, long j2, byte[] bArr) {
        this.ˏ = str;
        this.ˊ = str2;
        this.ॱ = j;
        this.ˎ = j2;
        this.ˋ = bArr;
    }

    EventMessage(Parcel parcel) {
        this.ˏ = (String) anr.ˎ(parcel.readString());
        this.ˊ = (String) anr.ˎ(parcel.readString());
        this.ॱ = parcel.readLong();
        this.ˎ = parcel.readLong();
        this.ˋ = (byte[]) anr.ˎ(parcel.createByteArray());
    }

    public int hashCode() {
        int i = 0;
        if (this.ᐝ == 0) {
            int hashCode = ((this.ˏ != null ? this.ˏ.hashCode() : 0) + 527) * 31;
            if (this.ˊ != null) {
                i = this.ˊ.hashCode();
            }
            this.ᐝ = ((((((hashCode + i) * 31) + ((int) (this.ॱ ^ (this.ॱ >>> 32)))) * 31) + ((int) (this.ˎ ^ (this.ˎ >>> 32)))) * 31) + Arrays.hashCode(this.ˋ);
        }
        return this.ᐝ;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        EventMessage eventMessage = (EventMessage) obj;
        if (this.ॱ == eventMessage.ॱ && this.ˎ == eventMessage.ˎ && anr.ˎ(this.ˏ, eventMessage.ˏ) && anr.ˎ(this.ˊ, eventMessage.ˊ) && Arrays.equals(this.ˋ, eventMessage.ˋ)) {
            return true;
        }
        return false;
    }

    public String toString() {
        return "EMSG: scheme=" + this.ˏ + ", id=" + this.ˎ + ", value=" + this.ˊ;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.ˏ);
        parcel.writeString(this.ˊ);
        parcel.writeLong(this.ॱ);
        parcel.writeLong(this.ˎ);
        parcel.writeByteArray(this.ˋ);
    }
}
